﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width" />
    <title>错误</title>
</head>
<body>
    <hgroup>
        <h1>错误。</h1>
        <h2>处理你的请求时出错。</h2>
    </hgroup>

    @if (typeof(HandleErrorInfo) == Model.GetType())
    {
        var error = Model as HandleErrorInfo;
        <div>
            @Newtonsoft.Json.JsonConvert.SerializeObject(new { error.ControllerName, error.ActionName, error.Exception?.Message })
        </div>
    }

    @if (ViewBag.Exception != null)
    {
        var error = ViewBag.Exception as Exception;
        <div>@error.Message</div>
    }


</body>
</html>
